package com.project.server.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.server.entity.Article;

import java.util.List;
import java.util.Map;

public interface ArticleService extends IService<Article> {
    Page<Article> getArticlePage(Integer current, Integer size, String title,Long categoryId,Integer status);

    Article getArticleDetail(Long id);

    void incrementViewCount(Long id);

    List<Article> getRecommendArticles(int limit);

    // 管理端接口
    void saveArticle(Article article);

    void updateArticle(Article article);

    void deleteArticle(Long id);

    Map<String, Object> getArticleStats();
}
